home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12708 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: yoyo.cc.monash.edu.au!not-for-mail
  2. From: nallan@yoyo.cc.monash.edu.au (Nick Allan)
  3. Newsgroups: comp.lang.c
  4. Subject: Processing text file
  5. Date: 2 Apr 1996 12:47:37 GMT
  6. Organization: Monash University
  7. Message-ID: <4jr7l9$6on@harbinger.cc.monash.edu.au>
  8. NNTP-Posting-Host: yoyo.cc.monash.edu.au
  9. X-NNTP-Posting-User: nallan
  10. X-Newsreader: TIN [UNIX 1.3 950823BETA PL0]
  11.  
  12. Hi everyone
  13. I'm kind of new to c, so please be gentle.
  14. I'm trying to write a program that reads a text file, a line at a time, 
  15. does some processing and outputs to another text file.
  16. The input text file has the same format for every line with the exception 
  17. of on ocation the last field is sometimes blank.
  18. The lines are not the same length.
  19.  
  20. Can someone give me ideas on the best way to handle this.  I've tried a 
  21. few methods 
  22. but I can't seem to get it to work.  My main problem is the variable 
  23. length in the input file.
  24.  
  25. Thanks for any help anyone can give me.
  26. I'd appriciate email replies.
  27.  
  28. Regards Nick
  29.         nallan@yoyo.cc.monash.edu.au
  30.         guardian@alexia.net.au
  31.  
  32.  
  33.